#include <iostream>
#include <cstdlib>
#include <list>
#include "TesScanner.h"
#include "TesToken.h"

using namespace std;


int main()
{
	TesScanner scanner( TesConfig::Default );
	scanner.ScanFile( t("Test.tes") );

	const list<TesToken> & tokens = scanner.GetTokens();
	for( list<TesToken>::const_iterator it = tokens.begin(); it != tokens.end(); ++it )
	{
		const TesToken & curToken = *it;
		tcout << static_cast<long>( curToken.Type ) << t(" @ ") << curToken.Location.ToString() << t(": ") << curToken.Text << endl;
	}

	system( "PAUSE" );
	return 0;
}